/**
 * Copyright 2013 DJSearch Co.,Ltd. All rights reserved.
 * DTM PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.police.controller;

/**
 * @author dingzhongchang
 * @version 1.0.0
 */
public interface IResponse {
    /**
     * result:0表示成功，1表示失败
     */
    int Success = 1;
    int Fail = -1;

    // {“result”:”1”,” userId”:”876567”,”password”:”123456”}
    // 结果状态
    int result();

    /**
     * 根据KEY值返回响应的结果
     *
     * @param key 属性
     * @return 值
     */
    String getValue(String key);

}
